<#--
/****************************************************
 * Description: 用户组添加列表页面
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      jingmiao
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-15 jingmiao Create File
**************************************************/
-->
<#include "/view/templates/ace/ace-inc.ftl">
 
<@input url="${base}/components/security/user/grouptouser">
  		<script type="text/javascript">
            function selectAll() {
                var c=$("[name='ccc']").prop("checked");
            	//alert(c);
            	
            		if(c){
            			$("[name='ids']").prop("checked",true);
            			
            		}else{
            			$("[name='ids']").prop("checked",false);
            		}
            	
            }
        </script>
    <@formgroup title='全选'> <input type="checkbox" name='ccc' onclick='selectAll();' ></@formgroup>

	<#if groupDTOList?exists><@formgroup title='用户组'><@checkboxlist list=groupDTOList name='ids' listKey='group.title' listValue='group.id' value=ids>

	    				</@checkboxlist></@formgroup></#if>
	   
	    <input type="hidden" name="userId" value="${userId}">
	        	
	    
	
</@input>